import { getRequest, postRequest,postBodyRequest ,bodyPostRequest} from '../../libs/axios';
import { exportPost } from '../../libs/axios';


// todo 添加预警值
export const editProfileData = param => postRequest('/DataAuditProfile/edit', param);
// todo 手机号预警值
export const submitMobileValue = num =>getRequest(`/dataAuditWarning/update/mobile?number=${num}`, '');
// todo 获取预警值
export const getProfileData = param => postRequest('/DataAuditProfile/getAll', param);
// todo 新增白名单
export const addWhiteListData = param => postRequest('/dataAuditWhitelist/add', param);

export const getDataByIdApi = param => getRequest('/dataAudit/getAuditById', param);
export const getDataByIdCardApi = param => getRequest('/dataAudit/getAuditByIdCard', param);

// todo 修改白名单
export const updateWhiteListData = param => postRequest('/dataAuditWhitelist/update', param);
// todo 获取白名单列表
export const getWhiteListData = param => postRequest('/dataAuditWhitelist/getByPage', param);
// todo 删除白名单
export const deleteWhiteListData = param => postRequest('/dataAuditWhitelist/delete', param);
// todo 导入白名单
export const importWhiteListData = param => postBodyRequest('/dataAuditWhitelist/importWhiteList', param);
// todo 导出白名单
export const exportWhiteListData = param => exportPost('/dataAuditWhitelist/exportWhiteList', param);

// todo: 添加数据核查预警关键词
export const addEarlyWarningKeywordsData = param => postRequest('/dataAuditWarning/add', param);

// todo: 获取数据核查预警关键词
export const getWordsEarlyWarningKeywordsData = param => postRequest('/dataAuditWarning/getWords', param);
// todo: 删除数据核查预警关键词
export const deleteWordsEarlyWarningKeywordsData = param => postRequest('/dataAuditWarning/delete', param);


// todo: 获取异常单位预警名单分页数据
export const getAllWordsEarlyWarningKeywordsData = param => postRequest('/dataAuditWarning/getAll', param);
//
// 手机号预警企业名单
export const getMobileWarningKeywordsData = param => postBodyRequest('/dataAuditWarning/page/mobile', param);

// todo: 获取用人单位统计分页数据
export const getPageDataAuditData = param => postRequest('/dataAudit/getPage', param);


// todo: 获取某个用人单位统计分页数据
export const getEnterprisePageDataAuditDataApi = param => postRequest('/dataAudit/getEnterprisePage', param);



// todo 导出用人单位统计数据
export const exportDataAudit = param => exportPost('/dataAudit/exportAll', param);

// 导出数据核查列表
export const exportDataAuditNumber = param => exportPost('/dataAudit/exportDataAuditNumber', param);

export const exportDataAuditWarning = param => exportPost('/dataAuditWarning/export', param);


// todo: 添加核查记录
export const addDataAuditDataApi = param => postRequest('/dataAuditRecord/add', param);

// todo: 获取核查记录分页数据
export const getByPageDataAuditRecordDataApi = param => postRequest('/dataAuditRecord/getByPage', param);

export const getAuditRecordDataStatisticApi = param => postRequest('/dataAuditRecord/statistic', param);


// todo: 获取预警统计数据
export const getStatisticsDataApi = param => postRequest('/dataAudit/statistics', param);


// todo 导出企业数据核查数据
export const exportAllData = param => exportPost('/dataAudit/exportAll', param);

// todo 导出企业条件数据核查数据
export const exportConditionData = param => exportPost('/dataAudit/exportCondition', param);


// todo 导出所有核查记录数据
export const exportAllRecordData = param => exportPost('/dataAuditRecord/exportAll', param);
// todo 导出当前查询核查记录数据
export const exportConditionRecordData = param => exportPost('/dataAuditRecord/exportCondition', param);








